<template>
  <div class="adminset-module">
    <h3 class="title">管理员配置</h3>
    <div class="superadmin">
      <mu-flex class="superadmin-header" align-items="center">
        <span class="superadmin-header-title">超级管理员</span>
        <span class="superadmin-header-tip"
          >可设置风险操作保护、风险操作提醒等账号安全</span
        >
      </mu-flex>
      <mu-flex align-items="center">
        <div class="superadmin-item">
          <mu-flex class="superadmin-item-main" align-items="center">
            <img class="superadmin-item-img" src="" />
            <mu-flex>
              <div class="superadmin-item-content">
                <div class="superadmin-item-name">Jack.zhang</div>
                <div class="superadmin-item-info">l*******ig</div>
                <div class="superadmin-item-info">2018-01-22</div>
              </div>
              <div>
                <span
                  class="superadmin-item-operate-btn"
                  @click="superadminModalShow = true"
                  >修改</span
                >
              </div>
            </mu-flex>
          </mu-flex>
        </div>
      </mu-flex>
    </div>
    <div class="projectadmin">
      <mu-flex class="projectadmin-header" align-items="center">
        <span class="projectadmin-header-title">学习项目管理员</span>
        <img src="" class="projectadmin-header-help-img" />
      </mu-flex>
      <mu-flex
        class="projectadmin-operate"
        align-items="center"
        justify-content="between"
      >
        <mu-paper :z-depth="1" class="search-input">
          <input
            type="text"
            v-model="searchContent"
            placeholder="请输入关键词搜索"
            :allowClear="true"
            @pressEnter="onSearch"
          />
          <mu-icon class="input-icon" value="search" @click="onSearch">
          </mu-icon>
        </mu-paper>
        <mu-flex align-items="center">
          <span class="projectadmin-tip">最多10个，还可以绑定6个</span>
          <span class="projectadmin-recharge">充值</span>
          <mu-button class="projectadmin-add-btn">添加</mu-button>
        </mu-flex>
      </mu-flex>
      <mu-flex align-items="center">
        <div class="projectadmin-item">
          <mu-flex class="projectadmin-item-main" align-items="center">
            <img class="projectadmin-item-img" src="" />
            <mu-flex>
              <div class="projectadmin-item-content">
                <div class="projectadmin-item-name">Jack.zhang</div>
                <div class="projectadmin-item-info">l*******ig</div>
                <div class="projectadmin-item-info">备注：</div>
              </div>
              <div>
                <span class="projectadmin-item-operate-btn">删除</span>
              </div>
            </mu-flex>
          </mu-flex>
        </div>
        <div class="projectadmin-item">
          <mu-flex class="projectadmin-item-main" align-items="center">
            <img class="projectadmin-item-img" src="" />
            <mu-flex>
              <div class="projectadmin-item-content">
                <div class="projectadmin-item-name">Jack.zhang</div>
                <div class="projectadmin-item-info">l*******ig</div>
                <div class="projectadmin-item-info">备注：</div>
              </div>
              <div>
                <span class="projectadmin-item-operate-btn">删除</span>
              </div>
            </mu-flex>
          </mu-flex>
        </div>
        <div class="projectadmin-item">
          <mu-flex class="projectadmin-item-main" align-items="center">
            <img class="projectadmin-item-img" src="" />
            <mu-flex>
              <div class="projectadmin-item-content">
                <div class="projectadmin-item-name">Jack.zhang</div>
                <div class="projectadmin-item-info">l*******ig</div>
                <div class="projectadmin-item-info">备注：</div>
              </div>
              <div>
                <span class="projectadmin-item-operate-btn">删除</span>
              </div>
            </mu-flex>
          </mu-flex>
        </div>
      </mu-flex>
    </div>
    <mu-dialog
      class="edit-superadmin-modal"
      width="700"
      :open.sync="superadminModalShow"
      :overlay-close="false"
    >
      <div class="header" slot="title">
        <mu-stepper class="stepper" :active-step="activeStep">
          <mu-step>
            <mu-step-label>
              <img
                src="https://image.xuexiwangzhe.com/FhjqZ24MrIK12Ny65IOSstW8_vO8"
                class="stepper-label-icon"
              />
              <span>验证原管理员</span>
            </mu-step-label>
          </mu-step>
          <mu-step>
            <mu-step-label>
              <img
                src="https://image.xuexiwangzhe.com/FjTos1r8JKE-3RrsEskMI8e7gpEY"
                class="stepper-label-icon"
              />
              <span>绑定新管理员</span>
            </mu-step-label>
          </mu-step>
        </mu-stepper>
        <img
          src="https://image.xuexiwangzhe.com/Fpk6KYsH86mtb6W95pRnJn8jzZ2v"
          class="modal-close-img"
          @click="superadminModalShow = false"
        />
      </div>
      <div class="main">
        <img
          class="qrcode"
          src="https://image.xuexiwangzhe.com/FsSCVMsj53agTcwx-9uF1a14A6sW"
        />
        <div class="qrcode-tip">使用原管理员微信扫码验证</div>
      </div>
      <div style="text-align:center;">
        <mu-button class="ok-btn">我已验证</mu-button>
      </div>
    </mu-dialog>
  </div>
</template>
<script>
export default {
  data() {
    return {
      activeStep: 0,
      superadminModalShow: false,
      searchContent: "",
    };
  },
  methods: {
    onSearch() {},
  },
};
</script>
<style lang="less">
.adminset-module {
  padding-left: 100px;
  .title {
    font-size: 20px;
    color: #515151;
    margin-bottom: 20px;
  }

  .search-input {
    display: flex;
    align-items: center;
    padding-left: 20px;
    width: 220px;
    border-radius: 20px;
    border: 1px solid #f3f3f3;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.14);
    input {
      outline: none;
      border: none;
      border-radius: 20px;
      height: 35px;
      &::placeholder {
        color: #a3a3a3;
      }
    }

    .input-icon {
      cursor: pointer;
    }
  }

  .superadmin,
  .projectadmin {
    width: 800px;
    padding: 20px 15px;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0px 2px 8px 0px rgba(112, 112, 112, 0.14);
    border-radius: 4px;
    border: 1px solid #eee;
  }

  .superadmin-header,
  .projectadmin-header {
    margin-bottom: 20px;
  }

  .superadmin-header-title,
  .projectadmin-header-title {
    padding-left: 5px;
    color: #515151;
    font-size: 16px;
    margin-right: 15px;
  }

  .superadmin-header-tip {
    color: #b9b9b9;
    font-size: 13px;
  }

  .superadmin-item,
  .projectadmin-item {
    padding: 5px;
  }

  .superadmin-item-main,
  .projectadmin-item-main {
    background-color: #f6f8f9;
    padding: 10px;
  }

  .superadmin-item-img,
  .projectadmin-item-img {
    width: 50px;
    margin-right: 15px;
  }

  .superadmin-item-content,
  .projectadmin-item-content {
    margin-right: 15px;
  }

  .superadmin-item-name,
  .projectadmin-item-name {
    color: #374052;
    font-size: 16px;
    margin-bottom: 15px;
  }

  .superadmin-item-info,
  .projectadmin-item-info {
    color: #b3b3b3;
    margin-bottom: 10px;
    font-size: 12px;

    &:last-child {
      margin-bottom: 0;
    }
  }

  .superadmin-item-operate-btn,
  .projectadmin-item-operate-btn {
    cursor: pointer;
    color: #7b8cb1;
    font-size: 12px;
  }

  .projectadmin-header-help-img {
    width: 20px;
  }

  .projectadmin-operate {
    padding-left: 5px;
    padding-right: 5px;
    margin-bottom: 30px;
  }

  .projectadmin-tip {
    color: #b9b9b9;
    font-size: 12px;
    margin-right: 6px;
  }

  .projectadmin-recharge {
    cursor: pointer;
    color: #4972f1;
    font-size: 12px;
    margin-right: 10px;
  }

  .projectadmin-add-btn {
    background-color: #4972f1;
    border-radius: 4px;
    color: #fff;
    height: 40px;
    width: 80px;
    box-shadow: none;
  }
}

.modal-close-img {
  cursor: pointer;
  position: absolute;
  top: 27px;
  right: 20px;
  width: 13px;
}

.edit-superadmin-modal {
  .mu-dialog {
    box-shadow: 4px 4px 13px 1px rgba(68, 64, 64, 0.32);
    border-radius: 6px;
  }
  .mu-dialog-title {
    padding-top: 0;
    padding-right: 0;
    padding-left: 0;
  }
  .header {
    position: relative;
    width: 100%;
  }

  .main {
    margin-bottom: 30px;
    text-align: center;
  }

  .qrcode {
    width: 250px;
  }

  .qrcode-tip {
    color: #bab7b7;
    text-align: center;
  }

  .ok-btn {
    background-color: #3366ff;
    color: #fff;
    border-radius: 6px;
    width: 130px;
    height: 40px;
    margin-bottom: 30px;
    box-shadow: -2px 2px 8px 1px rgba(218, 218, 218, 0.36);
  }

  .stepper {
    width: 310px;
    margin: 0 auto;

    .stepper-label-icon {
      width: 20px;
      margin-right: 15px;
    }

    .mu-step-label-icon-container {
      display: none;
    }

    .mu-step-connector {
      display: none;
    }

    .mu-step-label-circle {
      background-color: transparent;
      color: #a3a3a3;
      border: 1px solid #a3a3a3;
    }
    .mu-step-label.active {
      color: #3366ff;
      .mu-step-label-circle {
        color: #3366ff;
        border-color: #3366ff;
      }
    }
  }
}
</style>
